package com.baiyun.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baiyun.domain.Role;
import com.baiyun.service.RoleService;
import com.baiyun.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 20516
* @description 针对表【sys_role】的数据库操作Service实现
* @createDate 2022-06-17 21:39:56
*/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
    implements RoleService{

    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> getRoleByUserId(Long id) {
        return roleMapper.listByUserID(id);
    }
}




